﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace comm.objst
{
    [Serializable]
    public class BackpackInfo
    {
        private string _backpackId = null;
        public string BackpackId
        {
            get
            {
                if (_backpackId == null)
                {
                    _backpackId = "";
                }
                return _backpackId;
            }
            set { _backpackId = value; }
        }

        private string _name = null;
        public string Name
        {
            get
            {
                if (_name == null)
                {
                    _name = "";
                }
                return _name;
            }
            set { _name = value; }
        }

        public int Max { get; set; }

        private Dictionary<int, ItemInfo> _itemDic = null;
        public Dictionary<int, ItemInfo> ItemDic
        {
            get
            {
                if (_itemDic == null)
                {
                    _itemDic = new Dictionary<int, ItemInfo>();
                }
                return _itemDic;
            }
            set { _itemDic = value; }
        }
    }
}
